<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
	<head>
		<meta charset="utf-8">
		<title>杰利联合 </title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
		<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
		<meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
		<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
		<meta content="no-cache" http-equiv="pragma">
		<meta content="0" http-equiv="expires">
		<meta content="telephone=no, address=no" name="format-detection">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
		<link rel="stylesheet" type="text/css" href="${ctxStatic}/jiu/css/mobile_module.css?v=1492676217" media="all">
		<script type="text/javascript" src="${ctxStatic}/jiu/js/jquery-2.0.3.min.js"></script>
		<script type="text/javascript" src="${ctxStatic}/jiu/js/prefixfree.min.js?v=1492676217"></script>
		<script type="text/javascript" src="${ctxStatic}/jiu/js/dialog.js?v=1492676217"></script>
		<script type="text/javascript" src="${ctxStatic}/jiu/js/flipsnap.min.js?v=1492676217"></script>
		<script type="text/javascript" src="${ctxStatic}/jiu/js/mobile_module.js?v=1492676217"></script>
		<link href="${ctxStatic}/jiu/css/common.css?v=1492676217" rel="stylesheet" type="text/css">
			<style>
				.moneyinfo li {
					display: inline-block;
					vertical-align: middle;
					font-size: 14px;
					width: 45%;
					text-align: center;
					margin-top: 6px;
					margin-bottom: 6px;
				}
				.moneyinfo li:first-child {
					border-right: 1px rgba(255, 255, 255, 0.24) solid;
				}
				.moneyinfo li span{
					background: #EFB54B;
				    height: 45px;
				    line-height: 45px;
				    border-radius: 5px;
				    color: #fff;
				    padding-right: 10px;
				    padding-bottom: 7px;
				    padding-left: 10px;
				    padding-top: 7px;
				}
				.yonghu{
				width: 100%;				
			    background-size: cover;
				background-image: url(/jiujiu/static/jiu/img/t01303e57a8fc53bb47.jpg);
                padding-top: 20px;                
                text-align: center;		
                  }
                  
			</style>
	</head>
	<body class="withFoot" style="">
		<div id="wap">
			<div class="container" id="acr">
			  <section>
				<div  class="yonghu">
					<c:choose>
					    <c:when test="${empty jiuStore.logo}">
					     <img src="${jiuStore.headimgurl}" style="height: 80px;width: 80px;border-radius: 50%;border:2px solid white"/>
					    </c:when>
					    <c:otherwise>
					      <img src="${ctxUser }/jiu/${jiuStore.logo}" style="height: 80px;width: 80px;border-radius: 50%;border:2px solid white"/>
					    </c:otherwise>
					</c:choose>
					
					<p style="font-size: 0.8rem;margin-top: 10px;color: #FFFFFF;">${jiuStore.name}</p>					
					<ul class="moneyinfo" style="background-color:rgba(20, 20, 20, 0.08);margin-top: 25px;">
						<li>
							<p style="color: #FFFFFF">账户积分</p>
							<p style="color: #ffffff;font-size: 18px;">${jiuStore.point}分</p>
						</li>
						<li>
							<span onclick="chongzhi()">去充值</span>
						</li>						
					</ul>			
				</div>				
		</section>
								
				<div class="block">
				
					<c:if test="${jiuStore.identity eq 1}">
							<em style="float: left; margin:10px;">
			        		   <img src="${ctxStatic}/jiu/img/iconfont-wanshan.png" width="28px">	        		
			        	   </em>
							<a class="block_a" href="javascript:register()">完善资料<em class="arrow_right">&nbsp;</em></a> 
							
							<em style="clear:both; float: left; margin:8px 10px;">
			        		    <img src="${ctxStatic}/jiu/img/iconfont-dinggou.png" width="30px">	        		
			        	    </em>
							<a class="block_a" href="javascript:chuantu()">传图设计师管理<em class="arrow_right">&nbsp;</em></a>
							
							<em style="clear:both; float: left; margin:8px 10px;">
			        		    <img src="${ctxStatic}/jiu/img/iconfont-dinggou.png" width="30px">	        		
			        	    </em>
							<a class="block_a" href="javascript:caiwu()">财务人员管理<em class="arrow_right">&nbsp;</em></a>
							
                    </c:if>
                    
                    
					
					
					  <em style="clear:both; float: left; margin:8px 10px;">
		        		<img src="${ctxStatic}/jiu/img/iconfont-dingdanliebiao.png" width="30px">	        		
		        	 </em>
		        		<a class="block_a block_last" href="javascript:dingdan()">订单列表
		        		<c:if test="${isHasNoRead }">
				        		<div style="float: right;margin-right: 28px;margin-top: 22px;height: 10px;width: 10px;background-color: #f70a04;border-radius: 21px;">
							</div>
							</c:if>
		        		<em class="arrow_right">&nbsp;</em></a>
							
							
					<c:if test="${jiuStore.identity eq 1 || jiuStore.identity eq 3}">
						<em style="clear:both; float: left; margin:13px 14px;">
		        		<img src="${ctxStatic}/jiu/img/chongzhilog.png" width="24px">	        		
		        	 	</em>
						<a class="block_a block_last" href="javascript:rechargeLog()">充值记录<em class="arrow_right">&nbsp;</em></a>
					
						<em style="clear:both; float: left; margin:13px 14px;">
			        		<img src="${ctxStatic}/jiu/img/shouzhi.png" width="24px">
			        	 </em>
						<a class="block_a block_last" href="javascript:balancePayments()">收支明细<em class="arrow_right">&nbsp;</em></a>
					</c:if>
					<c:if test="${(jiuStore.identity eq 1 || jiuStore.identity eq 3) && not empty jiuStore.factoryId}">
						<em style="clear:both; float: left; margin:13px 14px;">
			        		<img src="${ctxStatic}/jiu/img/shouzhi.png" width="24px">	        		
			        	 </em>
						<a class="block_a block_last" href="javascript:jieSuanPayments()">结算明细<em class="arrow_right">&nbsp;</em></a>
					 </c:if>

					 <em style="clear:both; float: left; margin:13px 14px;">
		        		<img src="${ctxStatic}/jiu/img/shouzhi.png" width="24px">	        		
		        	 </em>
					<a class="block_a block_last" href="${ctxFront }/jiu/feedback?uid=4">意见反馈<em class="arrow_right">&nbsp;</em></a>
					 

				</div>
			</div>
			
			
			<c:if test="${(jiuStore.identity eq 1 || jiuStore.identity eq 3) && not empty jiuStore.factoryId}">
				<div class="block">
					
						  <em style="clear:both; float: left; margin:13px 14px;">
			        		<img src="${ctxStatic}/jiu/img/gongchang.png" width="23px">	        		
			        	 </em>
			        	 
			        	
			        	
			        	
		        		
						<a class="block_a block_last" href="javascript:factoryOrder()">工厂订单
						<c:if test="${factorIsHasNoRead }">
		        			<div style="float: right;margin-right: 28px;margin-top: 22px;height: 10px;width: 10px;background-color: #f70a04;border-radius: 21px;">
							</div>
		        		</c:if>
						<em class="arrow_right">&nbsp;</em>
						</a>
						
						  
						  <em style="clear:both; float: left; margin:13px 14px;">
			        		<img src="${ctxStatic}/jiu/img/tixianlog.png" width="24px">	        		
			        	 </em>
						<a class="block_a block_last" href="javascript:withdrawalsLog()">提现记录<em class="arrow_right">&nbsp;</em></a>
						
						 <em style="clear:both; float: left; margin:13px 14px;">
			        		<img src="${ctxStatic}/jiu/img/tixian.png" width="24px">	        		
			        	 </em>
						<a class="block_a block_last" href="javascript:withdrawals()">提现<em class="arrow_right">&nbsp;</em></a>
					</div>
				</div>
			 </c:if>
			
			
			<c:if test="${jiuStore.identity eq 1}">
				<div class="" style="margin: 10px 10px 20px 10px">			
		    		<button onclick="quit()" class="btns" style="color: white;background-color: #30B0F3;">退出登录</button>			
				</div>  
            </c:if>
			                                                                                                            
			
			<!-- 底部导航 -->
		<%@ include file="/WEB-INF/views/modules/jiuFront/footer.jsp"%>
		</div>
		<script>

			window.alert = function(name){
			  var iframe = document.createElement("IFRAME");
			  iframe.style.display="none";
			  iframe.setAttribute("src", 'data:text/plain,');
			  document.documentElement.appendChild(iframe);
			  window.frames[0].window.alert(name);
			  iframe.parentNode.removeChild(iframe);
			 };
			 
			 window.confirm = function (message) {
			   var iframe = document.createElement("IFRAME");
			   iframe.style.display = "none";
			   iframe.setAttribute("src", 'data:text/plain,');
			   document.documentElement.appendChild(iframe);
			   var alertFrame = window.frames[0];
			   var result = alertFrame.window.confirm(message);
			   iframe.parentNode.removeChild(iframe);
			   return result;
			 };
		

			if("${jiuStore.identity}"=='3'){
				$('#acr').removeClass("container");
			}
			
			function quit(){
				 $.getJSON("${ctxFront }/jiu/quit", function(data){
                     alert(data.message);
                     if(data.msg=='success'){
                    	 window.location.href = "${ctxFront }/jiu/index";
                     }
                });
			}
		
			function chongzhi() {				
				window.location.href = "${ctxFront }/jiu/chongzhi?uid=${uid}&v="+Math.random();
			}
			
			//注册
			function register(){
				window.location.href="${ctxFront }/jiu/register?uid=${uid}&v="+Math.random();
			}
			
			function chuantu(){
				window.location.href="${ctxFront }/jiu/chuantu?uid=${uid}&v="+Math.random();
			}
			
			function caiwu(){
				window.location.href="${ctxFront }/jiu/caiwu?uid=${uid}&v="+Math.random();
			}
			
			function dingdan(){
				window.location.href="${ctxFront }/jiu/dingdan?uid=${uid}&v="+Math.random();
			}
			
			//工厂订单
			function factoryOrder(){
				window.location.href="${ctxFront }/jiu/factoryOrder?uid=${uid}&v="+Math.random();
			}
			//充值 记录
			function rechargeLog(){
				window.location.href="${ctxFront }/jiu/rechargeLog?uid=${uid}&v="+Math.random();
			}
			
			//提现
			function withdrawals(){
				window.location.href="${ctxFront }/jiu/withdrawals?uid=${uid}&v="+Math.random();
			}
			
			//提现记录
			function withdrawalsLog(){
				window.location.href="${ctxFront }/jiu/withdrawalsLog?uid=${uid}&v="+Math.random();
			}
			
			//收支明细
			function balancePayments(){
				window.location.href="${ctxFront }/jiu/balancePayments?uid=${uid}&v="+Math.random();
			}
			
			//结算明细
			function jieSuanPayments(){
				window.location.href="${ctxFront }/jiu/balancePayments?uid=${uid}&type=520&v="+Math.random();
			}
			
			
		</script>
	</body>
</html>